/*
 * @(#)ProjectListBrowserLock.java   09/11/08
 *
 * Copyright (c) 2009 HKUST. All rights reserved.
 *
 */



package org.ust.downloader;

/**
 *
 *
 * @version        0.1, 09/11/08
 * @author         Nelson Lau
 */
public abstract class NavigationLock
{
	protected final int	MAX_WAIT_SECOND	= 60 * 60 * 60 * 24;
	private boolean		abort			= false;
	private boolean		finished		= false;

	/**
	 *
	 *
	 * @return
	 */
	public boolean isAbort()
	{
		return abort;
	}

	/**
	 *
	 *
	 * @param b
	 */
	public void setAbort(boolean b)
	{
		abort	= b;
	}

	/**
	 *
	 *
	 * @return
	 */
	public abstract Integer getMaxPausePeriodInSecond();

	/**
	 *
	 *
	 * @param finished
	 */
	public void setFinished(boolean finished)
	{
		this.finished	= finished;
	}

	/**
	 *
	 *
	 * @return
	 */
	public boolean isFinished()
	{
		return finished;
	}
}
